package com.es.designmode.mediator;

/**
 * 抽象同事类，主要作用，拥有中介信息
 *
 * @author Will
 */
public abstract class Colleague {

    private Mediator mediator;

    /**
     * 构造方法，得到中介者对象
     *
     * @param mediator
     */
    public Colleague(Mediator mediator) {
        this.mediator = mediator;
    }

    public Mediator getMediator() {
        return mediator;
    }

    public void setMediator(Mediator mediator) {
        this.mediator = mediator;
    }
}
